package welsir.entity.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * @author Genius
 * @date 2023/03/07 20:55
 **/
@Data
public class ArticleCommentVO {

    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer userId;
    private String  content;
    private String username;
    private String email;


    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date addTime;

    private Integer parentId;
    private Integer foreignId;
    private String profile;
    private Integer articleId;
    private String articleName;
}
